package com.liu.design.building.factory.factoryMethod;

/**
 * @author LIU
 * @version 1.0
 * @date 2022/12/20 14:29
 * @description: 简单工厂模式
 * 把工厂抽象接口，面对接口编程
 *   将职能分开，专人干专事
 */
public class Test {
    public static void main(String[] args) {

        ICourseFactory factory = new JavaFactory();
        ICourse course = factory.createCourse();
        course.record();
    }
}
